package cn.huiyunche.base.service.enums;

/**
 * 账单状态
 *
 * @author lm
 */
public enum AccTurnoverStatusEnum {

    WAIT(10, "未结算"),
    BILL(20, "已出账单"),
    DONE(30, "已结算"),;

    private final int value;
    private final String text;

    AccTurnoverStatusEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static AccTurnoverStatusEnum getByValue(int value) {
        for (AccTurnoverStatusEnum temp : AccTurnoverStatusEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
